package com.huaxiafinance.management.model;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

public class MallProduct {
    private Integer id;

    /**
     * 商品uuid
     */
    private String proUuid;
    /**
     * 商品code值
     */
    private String proCode;
    @NotBlank(message = "商品名字不能为空")
    private String proName;
    @NotNull(message = "类别代码不能为空")
    private Integer proType;
    @NotNull(message = "商品属性不能为空")
    private Integer proProperty;
    @NotBlank(message = "商品品牌不能为空")
    private String proBrand;

    private String proTagId;
    @NotBlank(message = "商品服务标签不能为空")
    private String proServiceTagId;
    /**
     * 商品总销量
     */
    private Integer proSales;
    /**
     * 商品实际销量
     */
    private Integer proActualSales;
    @NotNull(message = "销量基数不能为空")
    private Integer proBaseSales;
    /**
     * 商品上下架状态
     */
    private Integer proOnshelfStatus;
    /**
     * 商品上架时间
     */
    private Date gmtOnshelf;
    /**
     * 商品信用分限制
     */
    private Double creditLimit;
    /**
     * 商品删除状态
     */
    private Integer isDeleted;

    private Date gmtCreate;

    private Date gmtModified;
    /**
     * 总库存
     */
    private Integer stock;

    /**
     * 供应商id
     */
    
    private Integer supplierId;

    private String supplierName;

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public Integer getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProUuid() {
        return proUuid;
    }

    public void setProUuid(String proUuid) {
        this.proUuid = proUuid == null ? null : proUuid.trim();
    }

    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode == null ? null : proCode.trim();
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName == null ? null : proName.trim();
    }

    public Integer getProType() {
        return proType;
    }

    public void setProType(Integer proType) {
        this.proType = proType;
    }

    public Integer getProProperty() {
        return proProperty;
    }

    public void setProProperty(Integer proProperty) {
        this.proProperty = proProperty;
    }

    public String getProBrand() {
        return proBrand;
    }

    public void setProBrand(String proBrand) {
        this.proBrand = proBrand == null ? null : proBrand.trim();
    }

    public String getProTagId() {
        return proTagId;
    }

    public void setProTagId(String proTagId) {
        this.proTagId = proTagId == null ? null : proTagId.trim();
    }

    public String getProServiceTagId() {
        return proServiceTagId;
    }

    public void setProServiceTagId(String proServiceTagId) {
        this.proServiceTagId = proServiceTagId == null ? null : proServiceTagId.trim();
    }

    public Integer getProSales() {
        return proSales;
    }

    public void setProSales(Integer proSales) {
        this.proSales = proSales;
    }

    public Integer getProActualSales() {
        return proActualSales;
    }

    public void setProActualSales(Integer proActualSales) {
        this.proActualSales = proActualSales;
    }

    public Integer getProBaseSales() {
        return proBaseSales;
    }

    public void setProBaseSales(Integer proBaseSales) {
        this.proBaseSales = proBaseSales;
    }

    public Integer getProOnshelfStatus() {
        return proOnshelfStatus;
    }

    public void setProOnshelfStatus(Integer proOnshelfStatus) {
        this.proOnshelfStatus = proOnshelfStatus;
    }

    public Date getGmtOnshelf() {
        return gmtOnshelf;
    }

    public void setGmtOnshelf(Date gmtOnshelf) {
        this.gmtOnshelf = gmtOnshelf;
    }

    public Double getCreditLimit() {
        return creditLimit;
    }

    public void setCreditLimit(Double creditLimit) {
        this.creditLimit = creditLimit;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}